﻿<%@ Page Title="完善用户信息" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UpdateProfile.aspx.cs" Inherits="OUSMS.UpdateProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="topchannel">
        完善用户信息
    </div>
    <table class="table1" border="0" cellspacing="1" cellpadding="2">
        <tr class="row1">
            <td style="width: 20%"><b>登录名：</b></td>
            <td style="width: 25%">
                <asp:TextBox ID="loginNameTxtBox" runat="server" ReadOnly="true" Width="90%"></asp:TextBox><asp:RequiredFieldValidator ID="loginNameRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入登录名" Text="" ControlToValidate="loginNameTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td style="width: 5%"><span style="color: Red">*</span></td>
            <td style="width: 20%"></td>
            <td style="width: 25%"></td>
            <td style="width: 5%"></td>
        </tr>
        <tr class="row2">
            <td><b>姓名:</b></td>
            <td>
                <asp:TextBox ID="nameTxtBox" runat="server" Width="90%"></asp:TextBox><asp:RequiredFieldValidator ID="nameRequiredFieldValidator"
                    runat="server" ErrorMessage="必须输入姓名" Text="" ControlToValidate="nameTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>性别:</b></td>
            <td>
                <asp:DropDownList ID="genderDDL" runat="server" Width="50px">
                    <asp:ListItem Text="男" Value="男">男</asp:ListItem>
                    <asp:ListItem Text="女" Value="女">女</asp:ListItem>
                </asp:DropDownList></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row1">
            <td><b>邮箱:</b></td>
            <td>
                <asp:TextBox ID="emailTxtBox" runat="server" Width="90%" TextMode="Email"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                    runat="server" ErrorMessage="必须输入邮箱" Text="" ControlToValidate="emailTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>电话:</b></td>
            <td>
                <asp:TextBox ID="phoneTxtBox" runat="server" Width="90%" TextMode="Phone"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                    runat="server" ErrorMessage="必须输入电话" Text="" ControlToValidate="phoneTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td><b>一级单位：</b></td>
            <td>
                <asp:DropDownList ID="departmentDDL" runat="server"
                    DataTextField="Name" DataValueField="ID" Width="90%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.Departments"
                    AutoPostBack="true"
                    OnSelectedIndexChanged="departmentDDL_SelectedIndexChanged">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                    runat="server" ErrorMessage="必须选择一级单位" Text="" ControlToValidate="departmentDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
            <td><span style="color: Red">*</span></td>
            <td><b>二级单位：</b></td>
            <td>
                <asp:DropDownList ID="SecondDepartmentDDL" runat="server"
                    DataTextField="Name" DataValueField="ID" Width="90%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.SecondDepartments">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                    runat="server" ErrorMessage="必须选择二级单位" Text="" ControlToValidate="SecondDepartmentDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row1">
            <td><b>职务：</b></td>
            <td>
                <asp:TextBox ID="positionTxtBox" runat="server" Width="90%"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                    runat="server" ErrorMessage="必须输入职务" Text="" ControlToValidate="positionTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
            <td><b>职称:</b></td>
            <td>
                <asp:DropDownList ID="titleDDL" runat="server" DataTextField="Name" DataValueField="ID" Width="50%"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.Titles"
                    SelectMethod="GetAllTitles">
                </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator6"
                    runat="server" ErrorMessage="必须选择职称" Text="" ControlToValidate="titleDDL" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td colspan="6"><b>个人简介：</b></td>
        </tr>
        <tr class="row1">
            <td colspan="5">
                <asp:TextBox ID="introductionTxtBox" runat="server" Rows="5" Width="100%" TextMode="MultiLine"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator7"
                    runat="server" ErrorMessage="必须输入个人简介" Text="" ControlToValidate="introductionTxtBox" Display="none"
                    SetFocusOnError="true"></asp:RequiredFieldValidator></td>
            <td><span style="color: Red">*</span></td>
        </tr>
        <tr class="row2">
            <td colspan="6"><b>研究领域：</b></td>
        </tr>
        <tr class="row1">
            <td colspan="6" align="left">
                <asp:CheckBoxList ID="studyAreaChkList" runat="server"
                    DataTextField="Name" DataValueField="ID" RepeatLayout="Flow"
                    ItemType="OUSMS.AppLogic.DataAccessLayer.StudyAreas"
                    SelectMethod="GetALLStuyAreas" RepeatDirection="Vertical">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr class="row2">
            <td colspan="6">
                <asp:ValidationSummary ID="ValidationSummary" runat="server" BorderStyle="Solid"
                    BorderColor="Red" DisplayMode="BulletList" HeaderText="信息提交失败，请按下述提示进行修改:"
                    BorderWidth="1px" ShowSummary="true" CssClass="validationsummary" />
                <asp:Label ID="errorMsgLbl" runat="server" Visible="false" ForeColor="Red" BorderColor="Red"
                    BorderWidth="1px" BorderStyle="Solid" Width="100%" CssClass="validationsummary"></asp:Label></td>
        </tr>
        <tr class="row1">
            <td colspan="6" align="center">
                <asp:Button ID="submitBtn" runat="server" BackColor="Gray" Text="提  交" Width="80px" Height="25px" OnClick="submitBtn_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
